package co.baiku.boot.im.tencent.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * 消息元素 TIMMsgElement
 * <p>
 * 表情消息元素
 * </p>
 */
@JsonTypeName(value = "TIMFaceElem")
public class TencentMsgFaceElem implements TencentMsgContent {
    /**
     * 地理位置描述信息。
     */
    @JsonProperty("Index")
    private Integer index;
    /**
     * 纬度
     */
    @JsonProperty("Data")
    private String data;

    public TencentMsgFaceElem() {
    }

    public TencentMsgFaceElem(Integer index, String data) {
        this.index = index;
        this.data = data;
    }

    public static TencentMsgFaceElem of(Integer index, String data) {
        return new TencentMsgFaceElem(index, data);
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
